<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">

<head th:include="system/user/include :: header"></head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="ibox">
                <div class="ibox-title" style="padding-bottom: 0;">
                    <h3 class="text-center">商户资料</h3>
                    <div class="gg-nav">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#basic_info" data-toggle="tab">基本资料</a></li>
                            <li><a href="#account_info" data-toggle="tab">账户资料</a></li>
                            <li><a href="#cash_log_info" data-toggle="tab">提现记录</a></li>
                             <!-- <li><a href="#cash_centre_ecpe" data-toggle="tab">预计佣金</a></li> -->
                        </ul>
                    </div>
                </div>
                <div class="tab-content">
                    <!--basic info-->
                    <div class="ibox-content tab-pane fade in active"  id="basic_info">
                        <table class="table table-bordered table-condensed">
                            <tbody>
                            <tr>
                                <th class="required" style="text-align: right;">商户名称:</th>
                                <td th:text="${centre.name}"></td>

                                <th class="required" style="text-align: right;">简称:</th>
                                <td th:text="${centre.shortName}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">商户类型:</th>
                                <td th:text="${centre.type} == '1'? '企业':'个人'">
                                </td>
                                <th class="required" style="text-align: right;">官网:</th>
                                <td th:text="${centre.network}"> </td>
                            </tr>

                            <tr>
                                <th class="required" style="text-align: right;">注册地址:</th>
                                <td colspan="3" th:text="${centre.registAddress}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">开户行:</th>
                                <td th:text="${centre.depositBank}"></td>

                                <th class="required" style="text-align: right;">开户行账号:</th>
                                <td th:text="${centre.bankNo}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">营业执照编号:</th>
                                <td th:text="${centre.busiLicense}"></td>

                                <th class="required" style="text-align: right;">经营类别:</th>
                                <td th:text="${centre.busiCategory}"></td>
                            </tr>

                            <tr>
                                <th class="required" style="text-align: right;">注册资金(万):</th>
                                <td th:text="${centre.registCapital}"></td>
                                <th class="required" style="text-align: right;">注册日期:</th>
                                <td th:text="${centre.registDate} == null?null:${#dates.format(centre.registDate,'yyyy-MM-dd HH:mm:ss')}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">法人姓名:</th>
                                <td th:text="${centre.legalName}"></td>

                                <th class="required" style="text-align: right;">法人身份证:</th>
                                <td th:text="${centre.legalNo}"></td>
                            </tr>
                            <tr>
                                <th class="required" style="text-align: right;">控制人:</th>
                                <td th:text="${centre.controller}"></td>

                                <th class="required" style="text-align: right;">控制人身份证:</th>
                                <td th:text="${centre.controllerNo}"></td>
                            </tr>

                            <tr>
                                <th class="required" style="text-align: right;">账户管理人:</th>
                                <td th:text="${centre.relateAccount}"></td>

                                <th class="required" style="text-align: right;">账户管理办公电话:</th>
                                <td th:text="${centre.accountTel}"></td>
                            </tr>

                            <tr>
                                <th class="required" style="text-align: right;">账户管理手机:</th>
                                <td th:text="${centre.accountMobile}"></td>

                                <th class="required" style="text-align: right;">账户管理邮箱:</th>
                                <td th:text="${centre.accountEmail}"></td>
                            </tr>

                            <tr>
                                <th class="required" style="text-align: right;">业务联系人:</th>
                                <td th:text="${centre.relateBusi}"></td>

                                <th class="required" style="text-align: right;">业务联系办公电话:</th>
                                <td th:text="${centre.busiTel}"></td>
                            </tr>

                            <tr>
                                <th class="required" style="text-align: right;">业务联系手机:</th>
                                <td th:text="${centre.busiMobile}"></td>

                                <th class="required" style="text-align: right;">业务联系邮箱:</th>
                                <td th:text="${centre.busiEmail}"></td>
                            </tr>

                            <tr>
                                <th style="text-align: right;">备注:</th>
                                <td colspan="3" th:text="${centre.desc}">

                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>

                    <!--account_info-->
                    <div class="ibox-content tab-pane fade" id="account_info">
                        <div class="gg-form">
                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <span>提现金额(/笔):</span>
                                </div>
                                <div class="gg-formDetail">
                                    <label type="text" class="form-control" th:text="${rate.cashRate}"></label>
                                </div>
                            </div>

                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <span>交易费率(‰):</span>
                                </div>
                                <div class="gg-formDetail">
                                    <label type="text" class="form-control" th:text="${rate.tradeRate}"></label>
                                </div>
                            </div>

                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <span>账户余额:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <label type="text" class="form-control" th:text="${amount.amount}"></label>
                                </div>
                            </div>
                            <div class="gg-formGroup">
                                <div class="gg-formTitle">
                                    <span>冻结余额:</span>
                                </div>
                                <div class="gg-formDetail">
                                    <label type="text" class="form-control" th:text="${amount.frozenAmount}"></label>
                                </div>
                            </div>
                        </div>
                        <div class="ibox-title" shiro:hasPermission="index:centre:cash">
                            <h5>提现申请</h5>
                        </div>

                        <div class="gg-formGroup" shiro:hasPermission="index:centre:cash">
                            <div class="gg-formTitle">
                                <span>提现金额:</span>
                            </div>
                            <div class="gg-formDetail">
                                <input type="number" class="form-control" min="0" id="cashAmount"/>
                            </div>
                        </div>
                        <div class="gg-btnGroup" shiro:hasPermission="index:centre:cash">
                            <button type="button" class="btn btn-sm btn-primary" id="cashSubmit">提交</button>
                        </div>
                    </div>

                    <!--cash log info-->
                    <div class="ibox-content tab-pane fade"  id="cash_log_info">
                        <div class="wrapper wrapper-content animated fadeInRight">
                            <div class="col-sm-12">
                                <div class="ibox">
                                    <div class="ibox-body">
                                        <div class="fixed-table-toolbar">
                                            <div class="columns pull-right" role="group">
                                                <button class="btn btn-success" onclick="reLoad()">
                                                    <i class="fa fa-search" aria-hidden="true"></i>查询
                                                </button>
                                            </div>

                                            <div class="columns pull-right col-md-1 nopadding">
                                                <input type="text" class=" form-control" id="end" name="end" placeholder="请选择申请结束日期"
                                                       onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                                       style="background-color: #fff;" readonly="readonly"/>
                                            </div>

                                            <div class="columns pull-right">
                                                <label style="font-weight: 700;float: left;padding: 3px 10px;line-height: 2;font-size: 15px">
                                                    <i class="fa fa-exchange"></i>
                                                </label>
                                            </div>

                                            <div class="columns pull-right col-md-1 nopadding">
                                                <input type="text" class=" form-control" id="start" name="start" placeholder="请选择申请开始日期"
                                                       onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                                       style="background-color: #fff;" readonly="readonly"/>
                                            </div>

                                            <div class="columns pull-right col-md-1 nopadding">
                                                <select id="status" data-placeholder="选择状态" class="form-control chosen-select" tabindex="2">
                                                    <option value="">所有状态</option>
                                                    <option value="-1">作废</option>
                                                    <option value="0" selected>申请中</option>
                                                    <option value="1">已打款</option>
                                                </select>
                                            </div>
                                        </div>
                                        <table id="centreCashLogsTable" data-mobile-responsive="true"></table>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>

						<!-- <div class="ibox-content tab-pane fade" id="cash_centre_ecpe">

							<div class="wrapper wrapper-content animated fadeInRight">
								<div class="col-sm-12">
									<div class="ibox">
										<div class="ibox-body">
											<div class="fixed-table-toolbar">
												<div class="columns pull-right" role="group">
													<button class="btn btn-success" onclick="check()">
														<i class="fa fa-search" aria-hidden="true"></i>查询
													</button>
													<button class="btn btn-danger"   onclick="exportCentreLog()">
														<i class="fa fa-mail-reply-all" aria-hidden="true"></i>导出
												</button>
												</div>

                                               <div class="pull-right search col-md-2 nopadding">
						                            <input id="queryItem" type="text" class="form-control" placeholder="手机号/用户名">
						                        </div>

												<div class="pull-left search nopadding" style="width: 14%">
													<input type="text" class="laydate-icon form-control"
														placeholder="开始时间" id="startDt" name="startDt"
														onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
														style="background-color: #fff;" readonly="readonly" th:value="${startDt}" />
												</div>
												<div class="columns pull-left">
													<label
														style="font-weight: 700; float: left; padding: 3px 10px; line-height: 2; font-size: 15px">
														<i class="fa fa-exchange"></i>
													</label>
												</div>
												<div class="pull-left search nopadding" style="width: 14%">
													<input type="text" class="laydate-icon form-control"
														placeholder="注册结束时间" id="endDt" name="endDt"
														onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"
														style="background-color: #fff;" readonly="readonly"  th:value="${endDt}"/>
												</div>

												<div class="columns pull-left col-md-1.5 nopadding">
													<select data-placeholder="商品区分"
														class="form-control chosen-select" id="baseId"
														tabindex="2">
														<option value="">-- 请选择 --</option>
														<option value="0">平台商品</option>
														<option value="1">商户商品</option>
													</select>
												</div>
												
												     
                        <div class="columns pull-right col-md-1.5 nopadding" >
                            <select data-placeholder="订单状态" class="form-control chosen-select"
                                    id="opstatus" name="opstatus" tabindex="2">
                                <option value="">选择订单状态 </option>
                                <option value="-1">已取消</option>
                                <option value="0">代付款</option>
                                <option value="1">已付款</option>
                                <option value="2">已发货</option>
                                <option value="3">已收货</option>
                                <option value="4">待退款</option>
                                <option value="5">售后中</option>
                                 <option value="6">已完成</option>
                                  <option value="10">退款成功</option>
                            </select>
                        </div>


                    <div class="columns pull-right col-md-1.5 nopadding" >
                            <select data-placeholder="支付状态" class="form-control chosen-select"
                                    id="oppayStatus" name="oppayStatus" tabindex="2">
                                <option value="">选择支付状态</option>
                                <option value="0">未支付</option>
                                <option value="1">支付中</option>
                                <option value="2">支付完成</option>
                                <option value="3">支付失败</option>
                                <option value="4">代付申请</option>
                                <option value="5">待付中</option>
                                 <option value="6">代付成功</option>
                                 <option value="7">代付失败</option>
                                 <option value="8">退款申请</option>
                                  <option value="9">退款中</option>
                                  <option value="10">退款成功</option>
                                  <option value="11">退款失败</option>
                            </select>
                        </div>
                        
                        <div class="columns pull-right col-md-2 nopadding" >
                            <select data-placeholder="是否售后" class="form-control chosen-select"
                                    id="isafter" name="isafter" tabindex="2">
                                <option value="">选择是否售后 </option>
                               <option value="0">未售后商品</option>
                               <option value="1">已售后商品</option>
                            </select>
                        </div>
												
												
											</div>
											<table id="todayCentreTotalTable"
												data-mobile-responsive="true"></table>
											<div class="fixed-table-toolbar">
												<h3>
													站长收益: <input id="money"> 门店佣金总计: <input
														id="teammoney"> 手续费总计: <input id="poundage">
												</h3>
												</h3>
											</div>
											<div class="fixed-table-toolbar">
												<h3>
													售后支出: <input id="sumAfter"> 供应商支出: <input
														id="sumSup"> 实际收入: <input id="realIncome">
												</h3>
												</h3>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div> -->

					</div>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<div th:include="system/user/include :: footer"></div>
   <script src="/js/plugins/distpicker/distpicker.data.min.js" ></script>
    <script src="/js/plugins/distpicker/distpicker.min.js" ></script>
  <script type="text/javascript" src="/js/appjs/sys/user/personal.js"></script>
  <script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>
</html>
